/**
 * 
 */
package com.taobao.api.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * @version 2008-11-27
 * @author <a href="mailto:zixue@taobao.com">zixue</a>
 * 
 */
public abstract class TaobaoModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1244806568414031402L;

	/**
	 * 匿名字段
	 */
	private List<Object> anons;

	public static final String ANON = "anon";

	/**
	 * @return the anons
	 */
	public List<Object> getAnons() {
		return anons;
	}

	/**
	 * @param anons
	 *            the anons to set
	 */
	public void setAnons(List<Object> anons) {
		this.anons = anons;
	}

	/**
	 * @param anons
	 *            the anons to set
	 */
	public void addAnon(Object anon) {
		if (null == this.anons) {
			this.anons = new ArrayList<Object>();
		}
		this.anons.add(anon);
	}

}
